package dome;

public class Cat {
    public String name;
    public String address;
    public double height;
    public int age;

    public Cat(){

    }
    public Cat(String name){
        this.name = name;
    }

    public Cat(String name, String address){
        this.name = name;
        this.address = address;
    }

    public Cat(String name, String address, double height){
        this.name = name;
        this.address = address;
        this.height = height;
    }

    public Cat(String name, String address, double height, int age){
        this.name = name;
        this.address = address;
        this.height = height;
        this.age = age;
    }
    public void eat(){
        System.out.println("猫吃鱼");
    }
    public void catchMouse(){
        System.out.println("猫抓老鼠");
    }
    public void show(){
        System.out.println("猫" + name + "身高" + height + "年龄" + age + "地址" + address);
    }
}
